package com.infoland.afanmall.model.youXuan.adapter;

import android.support.annotation.Nullable;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.infoland.afanmall.R;
import com.infoland.afanmall.base.util.ToolsKit;
import com.infoland.afanmall.model.youXuan.entity.ChangYongEntity;

import java.util.List;

/**
 * @author 王永吉
 * @date 2018/7/16 10:26
 */
public class ChangYongAdapter extends BaseQuickAdapter<ChangYongEntity, BaseViewHolder> {

    public ChangYongAdapter(int layoutResId, @Nullable List<ChangYongEntity> data) {
        super(R.layout.search_item_yuan, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ChangYongEntity item) {
        LinearLayout linearLayout = helper.getView(R.id.linear_layout);
        if(helper.getAdapterPosition()%2==0){
//            ToolsKit.addMarginDp(linearLayout,30,0,50,0);
        }
        TextView textView = helper.getView(R.id.text);



    }
}
